<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var a = 10;
        var b = "你好";
        var c = " ";
        var d = "";
        var e;
        var f = null;
        var g = 0;
        var a1 = Boolean(a);
        var a2 = Boolean(b);
        var a3 = Boolean(c);
        var a4 = Boolean(d);
        var a5 = Boolean(e);
        var a6 = Boolean(f);
        var a7 = Boolean(g);
        console.log(a1,typeof a1);
        console.log(a2,typeof a2);
        console.log(a3,typeof a3);
        console.log(a4,typeof a4);
        console.log(a5,typeof a5);
        console.log(a6,typeof a6);
        console.log(a7,typeof a7);
    </script>
</body>
</html>